package com.ruoyi.web.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单对象 demo_order
 *
 * @author pei
 * @date 2024-06-02
 */
public class DemoOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单id */
    private Long oId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long cId;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String product;

    /** 数量 */
    @Excel(name = "数量")
    private Integer quantity;

    /** 总价 */
    @Excel(name = "总价")
    private BigDecimal totalPrice;


    public DemoCustomer getCu() {
        return cu;
    }

    public void setCu(DemoCustomer cu) {
        this.cu = cu;
    }

    private  DemoCustomer cu;

    public void setoId(Long oId)
    {
        this.oId = oId;
    }

    public Long getoId()
    {
        return oId;
    }
    public void setcId(Long cId)
    {
        this.cId = cId;
    }

    public Long getcId()
    {
        return cId;
    }
    public void setProduct(String product)
    {
        this.product = product;
    }

    public String getProduct()
    {
        return product;
    }
    public void setQuantity(Integer quantity)
    {
        this.quantity = quantity;
    }

    public Integer getQuantity()
    {
        return quantity;
    }
    public void setTotalPrice(BigDecimal totalPrice)
    {
        this.totalPrice = totalPrice;
    }

    public BigDecimal getTotalPrice()
    {
        return totalPrice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("oId", getoId())
                .append("cId", getcId())
                .append("product", getProduct())
                .append("quantity", getQuantity())
                .append("totalPrice", getTotalPrice())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("createBy", getCreateBy())
                .append("updateBy", getUpdateBy())
                .append("remark", getRemark())
                .toString();
    }
}
